package com.zhanggm.springcloud.user.service;

import com.zhanggm.springcloud.user.User;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    /**
     * 通过用户Id，查询用户
     * @param id
     * @return
     */
    public User getById(Integer id){
        User user = new User();
        user.setId(id);
        user.setUsername("username"+id);
        return user;
    }
}
